FROM ccr.ccs.tencentyun.com/shaco_work/jre:21_ubuntu22

# 复制构建时镜像的构建结果
WORKDIR /workspace
COPY "cli/build/libs/KotlinToolsCli.jar" /workspace/cli.jar
COPY "run.sh" /workspace/run.sh

# 给予执行权限
RUN chmod +x /workspace/cli.jar
RUN chmod +x /workspace/run.sh

# 使用以下命令启动脚本
# java -jar /workspace/cli.jar -s test.kts

CMD [ "/workspace/run.sh"]